<?php
    
    session_start();
	
	require("./lib.php");
	
	$connect = sql_connect($db_host, $db_user, $db_pass, $db_name);
	
?>

<table style="width:1000px; height:50px; border:5px #CCCCCC solid;">
	<tr>
		<td align="center" valign="middle" colspan="3" style="font-size: 15px; font-weight:bold;">
			게시판 테스트 ( Board Test )
		</td>
	</tr>
	<tr>
		<td align="center" valign="middle" style="font-size: 12px;">
			<a href="./board_list.php">목록보기</a>
		</td>
		<td align="center" valign="middle" style="font-size: 12px;">
			<?
				if($_SESSION[user_id]){
			?>
					<a href="./board_logout.php">로그아웃</a>
			<?
				}else{
			?>
					<a href="./board_login.php">로그인</a>
			<? 
				}
			?>
		</td>
		<td align="center" valign="middle" style="font-size: 12px;">
			<?
				if($_SESSION[user_id]){
			?>
					<a href="./board_member_modify.php">정보 수정</a>
			<?
				}else{
			?>
					<a href="./board_register.php">회원 가입</a>
			<?
				}
			?>
		</td>
	</tr>
</table>